import hyRequest from './index'

export function getSwiperPic() {
	return hyRequest.get('/banner')
}

export function getRankings(id) {
	return hyRequest.get('/playlist/detail', {
		id
	})
}

// cat -> category 类别
export function getSongMenu(cat = '全部', limit = 6, offset = 0) {
	return hyRequest.get('/top/playlist', {
		cat,
		limit,
		offset
	})
}

export function getSongMenuDetail(id) {
	return hyRequest.get('/playlist/detail/dynamic', {
		id
	})
}
